<!DOCTYPE html>
<html>
	
	<head>
		<meta charset="utf-8">
		<title>商品展示</title>
		<script src="js/jquery-1.8.3.min.js" type="text/javascript"></script>
		<script>
			
			function addUser(){
				alert("测试成功");
				var data3 = {
				            "name": "danei",
				            "age": 1200,
				            "sex": "women"
				};
				        var data4=JSON.stringify(data3);
				
				
				     $.ajax({
				     	type: "POST",
				     	url: "http://localhost:9999/user/mm/tt/uu",
				     	data: data4,
				     	dataType: "json",
				     	success: function(data) {
				     		alert("成功");
				     	},
				     	error:function(data){
				     		alert("错误1");
				     	}
				     	
				     })
			}
			
			
				
				
			
			
			
		</script>
		
		
	</head>
	    
	
	
	<body>
		<h1>加载成功</h1>
		<button  onclick="addUser()">点击测试</button>
		
		
		
		
	</body>
	
</html>
